package cn.stacey.elasticsearch;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

import cn.stacey.elasticsearch.domain.Product;
import cn.stacey.elasticsearch.service.ProductService;

@RunWith(SpringRunner.class)
@ContextConfiguration("classpath:context.xml")
public class testProducts {
	@Autowired
	Product product;
	@Autowired
	ProductService service;
	private final String s = 10;
	@Test
	public void testFindById() {
		Product byId = service.findById(1);
		System.out.println(byId);
	}
}
